'use strict';

/**
 * @ngdoc directive
 * @name jgappApp.directive:flowcomment
 * @description
 * # flowcomment
 */
angular.module('jgappApp')
    .directive('flowcomment', function(Util, $location) {
        return {
            scope: {
                uid: "=uid"
            },
            template: '<div class="section rel-list-label mt10" ng-click="goComment()"><div class="info-title">评论</div></div>',
            replace: true,
            restrict: 'AE',
            link: function postLink(scope, element, attrs) {
                scope.goComment = function() {
                    $location.path("flowcomment/comment/" + scope.uid);
                }
            }
        };
    });
